<?phpclass cache_engine_memcache implements iCacheControllerBackend {	private
		$memcache = null,		$compress = 0;		public function __construct () {		$regedit = Regedit::getInstance ();				$server = $regedit->get ('//settings/cache/memcache/server');		$port = $regedit->get ('//settings/cache/memcache/port');				$this->memcache = new Memcache;		$this->memcache->pconnect ($server, $port);				if (defined ('MEMCACHE_COMPRESS')) {			$this->compress = MEMCACHE_COMPRESS;		}	}
	
	public function load($key, $lifetime) {
		return $this->memcache->get($key);
	}
	
	public function save($key, $value, $lifetime) {
		$this->memcache->set ($key, $value, $this->compress, $lifetime);
	}		public function delete ($key) {		$this->memcache->remove ($key);	}}